package com.example.demos.servicelmpl;

import com.example.demos.mapper.UserMapper;
import com.example.demos.model.UserModel;
import com.example.demos.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Userlmpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public UserModel login(String user, String pwd) {
        return null;
    }

    @Override
    public int regist(UserModel um) {
        try {
            int res=userMapper.regist(um);
            return res;
        }catch (Exception ex){
            System.out.println(ex);
            return -1;
        }
    }
}
